<template>
  <div class="swi-slide">
    <swiper :options="swiperOption">
      <swiper-slide v-for="item in ImgArray" :key="item.id">
        <img :src="item.src" alt="">
      </swiper-slide>
    </swiper>
  </div>
</template>

<script>
import 'swiper/dist/css/swiper.css'

import { swiper, swiperSlide } from 'vue-awesome-swiper'

export default {
  components: {
    swiper,
    swiperSlide
  },
  props: {
    ImgArray: {
      type: Array,
      default: []
    }
  },
  data(){
    return {
      swiperOption: {
        autoplay:true,
        loop: true
        }

    }
  },
  props: {
    ImgArray: Array
  }
}
</script>

<style lang="css">
  .swi-slide{
    width: 100%;
    height: 200px;
    overflow: hidden;
    /* position: relative; */
  }
  .swi-slide img{
    width: 100%;
    height: auto;
    margin-top: -25%;
    /* position: absolute; */
    /* bottom: 0px; */
  }
</style>
